<template>
  <div id="homepage-title">
    <div class="title-content"><span class="title-left-line"></span><div>{{homePageTitle}}</div></div>
    <div class="title-line"></div>
  </div>
</template>
<script lang="ts">
import { Component , Vue ,Prop} from 'vue-property-decorator'

@Component({})
export default class HomeTitle extends Vue{
  @Prop({
    type:String,
    required:true,
    default:'Title'
  })
  //homePageTitle靠使用这个组件的父组件传值进来
  homePageTitle!:string;
}
</script>
<style lang="less" scoped>
#homepage-title{
  width: 100%;
  padding-top: 0.5rem;
  font-size: 1.375rem;
  .title-content{
    display: flex;
  text-align: left;
  align-items: center;
  .title-left-line{
    width: 0.3rem;
    height: 1.2rem;
    border-radius: 50rem;
    background-color: #1780dc;
    border: .125rem solid #1780dc;
    margin-right: 0.4rem;
    overflow: hidden;
  }
  }
  .title-line{
    width: 100%;
    height: .01875rem;
    margin: 0.3rem 0;
    background-color: #d3d3d3;
  }
}
</style>